// 角色管理相关API

import { httpDelete, httpPost, httpPut } from "@/utils/http";

// 查询角色
export const getRolesApi = (data?: object) => httpPost('/roles/search', data);

// 添加角色
export const addRoleApi = (data: object) => httpPost('/roles/add', data);

// 修改角色
export const updateRoleApi = (data: object) => httpPut('/roles/update', data);

// 删除角色
export const deleteRoleApi = (data: object) => httpDelete('/roles/remove', data);